﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManagePage.aspx.cs"
    Inherits="SEO_Server.Pages.UserManagePage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pelMain" />
    <ext:Panel ID="pelMain" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        ShowBorder="false" ShowHeader="false" Title="Panel">
        <Toolbars>
            <ext:Toolbar ID="tbrUser" runat="server">
                <Items>
                    <ext:Button ID="btnAddUser" runat="server" Icon="Add" Text="添加帳戶">
                    </ext:Button>
                    <ext:Button ID="btnDeleteSelectedUsers" runat="server" Icon="Delete" Text="刪除所選帳戶"
                        OnClick="btnDeleteSelectedUsers_Click" ConfirmText="您確定刪除所選帳戶嗎?">
                    </ext:Button>
                    <ext:Button ID="btnModifySelectedSites" runat="server" Icon="ServerEdit" Text="修改所選站點"
                        OnClick="btnModifySelectedSites_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid ID="gridUsers" runat="server" EnableCheckBoxSelect="true" EnableRowNumber="true"
                Title="Grid" ShowHeader="false" AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="gridUsers_PageIndexChange"
                OnRowCommand="gridUsers_RowCommand" OnRowDataBound="gridUsers_RowDataBound" AutoHeight="true">
                <Columns>
                    <ext:BoundField DataField="UserId" Hidden="true" />
                    <ext:BoundField DataField="SiteId" Hidden="true" />
                    <ext:BoundField Width="150px" DataField="UserAccount" HeaderText="帳戶" />
                    <ext:BoundField HeaderText="所刷站點" ExpandUnusedSpace="true" />
                    <ext:LinkButtonField Width="60px" Text="修改站點" CommandName="Edit" />
                    <ext:LinkButtonField Width="60px" Text="刪除帳戶" CommandName="Delete" ConfirmTarget="Parent"
                        ConfirmText="確定刪除該帳戶?" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    <ext:Window ID="wndAddUser" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server" IsModal="true" EnableConfirmOnClose="true" Height="200px"
        Width="400px" OnClose="wndAddUser_Close">
    </ext:Window>
    <ext:Window ID="wndEditURL" Title="修改站點" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server" IsModal="true" EnableConfirmOnClose="true" Height="300px"
        Width="600px" OnClose="wndEditURL_Close">
    </ext:Window>
    </form>
</body>
</html>
